package ccm.itesm.mx.servicios;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.view.View;
import android.view.View.OnClickListener;

public class ActiRepreActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button b = (Button) this.findViewById(R.id.button1);
        final EditText matricula = (EditText)this.findViewById(R.id.editText1);
        b.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				String mat = matricula.getText().toString();
				Bundle bundle = new Bundle();
				bundle.putString("mat", "Bienvenido " + mat );
				Intent intento = new Intent(getApplicationContext(),ListaOpcionA.class);
				intento.putExtras(bundle);
				startActivityForResult(intento,0);
				
				
			}
        	
        });
    }
    
    
    
}